Filter hook 'customize_value_{$id_base}'

in WP Core File wp-includes/class-wp-customize-setting.php at line 768

Description

Filters a Customize setting value not handled as a theme_mod or option. The dynamic portion of the hook name, `$id_base`, refers to the base slug of the setting name, initialized from `$this->id_data['base']`. For settings handled as theme_mods or options, see those corresponding functions for available hooks.

Occurrences

Filename Line Number
wp-includes/class-wp-customize-setting.php 768
wp-includes/customize/class-wp-customize-custom-css-setting.php 142

Parameters

Type Name Description
mixed $default_value The setting default value. Default empty.
WP_Customize_Setting $setting The setting instance.

PHP Doc

/**
			 * Filters a Customize setting value not handled as a theme_mod or option.
			 *
			 * The dynamic portion of the hook name, `$id_base`, refers to
			 * the base slug of the setting name, initialized from `$this->id_data['base']`.
			 *
			 * For settings handled as theme_mods or options, see those corresponding
			 * functions for available hooks.
			 *
			 * @since 3.4.0
			 * @since 4.6.0 Added the `$this` setting instance as the second parameter.
			 *
			 * @param mixed                $default_value The setting default value. Default empty.
			 * @param WP_Customize_Setting $setting       The setting instance.
			 */